<?php

$urls['^default$']          = array('src'=>'portal/portal.php', 'class'=>'Portal');
$urls['^article\/<id>\d+$'] = array('src'=>'portal/article.php', 'class'=>'Article', 'func'=>'show');
$urls['^work\/<id>\d+$']    = array('src'=>'portal/work.php', 'class'=>'Work', 'func'=>'show');
$urls['^about\/?$']    = array('src'=>'portal/article.php', 'class'=>'Article');
$urls['^service\/?$'] = array('src'=>'portal/service.php', 'class'=>'Service');
$urls['^service\/<sign>[\w-]+\/?$']    = array('src'=>'portal/service.php', 'class'=>'Service', 'func'=>'show');
$urls['^contact\/?$']    = array('src'=>'portal/page.php', 'class'=>'Page', 'func'=>'contact');


$urls['^manage\/?$'] = array('src'=>'manage/manage.php', 'class'=>'Manage', 'pre'=>'manager_auth');
$urls['^manage\/login?$'] = array('src'=>'manage/manage.php', 'class'=>'Manage', 'func'=>'init_login');
$urls['^manage\/auth?$'] = array('src'=>'manage/manage.php', 'class'=>'Manage', 'func'=>'login');
$urls['^manage\/logout?$'] = array('src'=>'manage/manage.php', 'class'=>'Manage', 'func'=>'logout');
$urls['^manage\/today\/?$'] = array('src'=>'manage/manage.php', 'class'=>'Manage', 'func'=>'today', 'pre'=>'manager_auth');

$urls['^manage\/project\/init_add\/?$'] = array('src'=>'manage/project.php', 'class'=>'Project', 'func'=>'init_add', 'pre'=>'manager_auth');

?>